package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.query.StrategyDetailQuery;
import cn.wolfcode.luowowo.article.vo.StatisVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQuery qo);

    int insertTagDetailRelation(@Param("tagId") Long tagId,@Param("detailId") Long detailId);

    int deleteDetailTagRelation(Long detailId);

    String getTagsByDetailId(Long detailId);

    List<StrategyDetail> selectViewnumTop3(Long destId);

    void updateStrategyStatisVo(StatisVo statisVo);
}